package com.itelite.domain.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.itelite.domain.dto.UserVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Group implements Serializable {
    @NotNull(message = "组编号不能为空")
    private Integer groupId;
    @NotNull(message = "组名不能为空")
    private String groupName;
    @NotNull(message = "详情不能为空")
    private String groupDetail;
    private Integer teacherId;
    private Integer parentId;
    private Integer level;
    private Boolean importable;
    private String teacher;
    private Boolean isSend;
    private String image;

    private Integer[] leaderIds;

    private String teacherMobile;

    private List<UserVo> leaders;

    private List<Group> children=new ArrayList<>();
}
